package de.bib.blue.manage.finance.jfree;

import org.jfree.chart.JFreeChart;
import org.jfree.data.general.AbstractDataset;

public abstract class AbstractChart {

	protected JFreeChart chart = null;

	protected AbstractDataset dataSet = null;

	protected String title;

	protected String xLabel;

	protected String yLabel;

	public abstract void createChart();

	public abstract void clearData();

	protected abstract int getWidth();

	protected abstract int getHeight();

	public AbstractChart(String title, String xLabel, String yLabel) {
		this.title = title;
		this.xLabel = xLabel;
		this.yLabel = yLabel;
	}

	public JFreeChart getChart() {
		return chart;
	}
}
